//
//  UIFont+Extension.swift
//  SwiftProject
//
//  Created by qindong on 2021/6/9.
//

import Foundation

extension UIFont {
    // MARK: - 统一调用 方便需求变更全局字体大小修改
    class func sFont(_ ofSize : CGFloat) -> UIFont {
        .systemFont(ofSize: ofSize)
    }
    
    class func bSFont(_ ofSize : CGFloat) -> UIFont {
        .boldSystemFont(ofSize: ofSize)
    }
    
    class func mSFont(_ ofSize : CGFloat) -> UIFont {
        .systemFont(ofSize: ofSize, weight: .medium)
    }
    
    class func hSFont(_ ofSize : CGFloat) -> UIFont {
        .systemFont(ofSize: ofSize, weight: .heavy)
    }
    
    class func rSFont(_ ofSize : CGFloat) -> UIFont {
        .systemFont(ofSize: ofSize, weight: .regular)
    }
}
